package com.zhy.day01.domain;

import java.io.Serializable;

/**
 * @author Lenovo
 * @version 1.0
 * @description TODO
 * @date 31/7/2023 下午2:03
 */

public class Movie implements Serializable {
    //
    public Integer rank;
    // 电影名称
    private String name;
    // 电影简介
    private String desc;
    // 评分
    private Double score;
    // 评论人数
    private Integer numb;
    public Movie(){}

    public Movie(Integer rank, String name, String desc, Double score, Integer numb) {
        this.rank = rank;
        this.name = name;
        this.desc = desc;
        this.score = score;
        this.numb = numb;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Integer getNumb() {
        return numb;
    }

    public void setNumb(Integer numb) {
        this.numb = numb;
    }

    @Override
    public String toString() {
        return "{" +
                "排名：" + rank +
                ", 电影名称'" + name +
                ", 描述：'" + desc +
                ", 评分：" + score +
                ", 人数：" + numb +
                '}';
    }
}
